package com.oauth.application.client.beans;

import com.google.gwt.user.client.rpc.IsSerializable;

public class ApplicationClientBean implements IsSerializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2479811800029767089L;
	private String addUrl;
	private String iconImageUrl;
	private String appImageUrl;

	private String name;
	private long id;

	public ApplicationClientBean() {
	}

	public ApplicationClientBean(String pName, long pAppId, String paddUrl, String pIconImageUrl,
			String pAppImageUrl) {
		name = pName;
		id = pAppId;
		addUrl = paddUrl;
		iconImageUrl = pIconImageUrl;
		appImageUrl = pAppImageUrl;
	}

	/**
	 * @return the iconImageUrl
	 */
	public String getIconImageUrl() {
		return iconImageUrl;
	}

	/**
	 * @param pIconImageUrl
	 *            the iconImageUrl to set
	 */
	public void setIconImageUrl(String pIconImageUrl) {
		iconImageUrl = pIconImageUrl;
	}

	/**
	 * @return the appImageUrl
	 */
	public String getAppImageUrl() {
		return appImageUrl;
	}

	/**
	 * @param pAppImageUrl
	 *            the appImageUrl to set
	 */
	public void setAppImageUrl(String pAppImageUrl) {
		appImageUrl = pAppImageUrl;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getAddUrl() {
		return addUrl;
	}

	public void setAddUrl(String pAddUrl) {
		addUrl = pAddUrl;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("ApplicationClientBean [addUrl=");
		builder.append(addUrl);
		builder.append(", appImageUrl=");
		builder.append(appImageUrl);
		builder.append(", iconImageUrl=");
		builder.append(iconImageUrl);
		builder.append(", id=");
		builder.append(id);
		builder.append(", name=");
		builder.append(name);
		builder.append("]");
		return builder.toString();
	}

}
